<?php
/**
 * Created by PhpStorm.
  提现申请验证器
 */

namespace App\Http\Requests;


use App\Validate\BaseValidate;

class WithdrawRequests extends BaseValidate
{
    protected $rule =[
        'money' => 'required',
        'wallet_id' => 'required',
        'account' => 'required',
        'type' => 'required',

    ];
    /**
     * @var array
     * 验证提示
     */
    protected $message = [
        'money.required'=>'请输入你要提现的金额',
        'wallet_id.required' =>'司机提现账号ID',
        'account.required' =>'账号必须',
        'type.required' =>'账号类型必传',
    ];
    //自定义场景
    protected $scene = [
        'modification'=>"money,wallet_id",
        'add'=>"account,type",
    ];
}